﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopTaohuaOrder : BaseObject
    {
        //begin
        public TopTaohuaOrder(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _ItemId;
        [Size(SizeAttribute.Unlimited)]
        public string ItemId
        {
            get
            {
                return _ItemId;
            }
            set
            {
                SetPropertyValue("ItemId", ref _ItemId, value);
            }
        }
        private string _OrderId;
        [Size(SizeAttribute.Unlimited)]
        public string OrderId
        {
            get
            {
                return _OrderId;
            }
            set
            {
                SetPropertyValue("OrderId", ref _OrderId, value);
            }
        }
        private string _Modified;
        [Size(SizeAttribute.Unlimited)]
        public string Modified
        {
            get
            {
                return _Modified;
            }
            set
            {
                SetPropertyValue("Modified", ref _Modified, value);
            }
        }
        private string _PicUrl;
        [Size(SizeAttribute.Unlimited)]
        public string PicUrl
        {
            get
            {
                return _PicUrl;
            }
            set
            {
                SetPropertyValue("PicUrl", ref _PicUrl, value);
            }
        }
        private string _Title;
        [Size(SizeAttribute.Unlimited)]
        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                SetPropertyValue("Title", ref _Title, value);
            }
        }
        private decimal _Price;
        public decimal Price
        {
            get
            {
                return _Price;
            }
            set
            {
                SetPropertyValue("Price", ref _Price, value);
            }
        }
        private string _SellerNick;
        [Size(SizeAttribute.Unlimited)]
        public string SellerNick
        {
            get
            {
                return _SellerNick;
            }
            set
            {
                SetPropertyValue("SellerNick", ref _SellerNick, value);
            }
        }
        private string _PayStatus;
        [Size(SizeAttribute.Unlimited)]
        public string PayStatus
        {
            get
            {
                return _PayStatus;
            }
            set
            {
                SetPropertyValue("PayStatus", ref _PayStatus, value);
            }
        }
        private TopTaohuaOrders _TaohuaOrders;
        [Association("TaohuaOrdersTaohuaOrders", typeof(TopTaohuaOrders))]
        public TopTaohuaOrders TaohuaOrders
        {
            get
            {
                return _TaohuaOrders;
            }
            set
            {
                SetPropertyValue("TaohuaOrders", ref _TaohuaOrders, value);
            }
        }
        //end

    }
}
